<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- 判断：如果用户登陆： 显示欢迎你，退出 -->
<!-- 判断：如果用户没有登陆： 显示登陆、注册 -->
<head>
<style  type="text/css">
body{
	margin:0;
	font-family:'微软雅黑','Times New Roman', Times, serif;
	}
.navi_head{
	height:40px;
	background-color:#459df5;
}
.navi_body{
	overflow:hidden;
	height:40px;
	background:rgba(36,97,158,0.9);
	transition:height ease 0.5s;
}
.navi_body:hover{
	height:300px;
}

.navi_head>div>span{
	width:210px;
	text-align:center;
	height:300px;
	display:inline-block;
	font-weight:bold;
	color:#FFF;
	font-size:14px;
	vertical-align:top;
}

.navi_head>div>span>p a{
	color:#FFF;
	text-decoration:none;
}
.navi_head>div>span>p a:hover{
	color:#FFF;
	text-decoration:underline;
}

.navi_title{
	font-size:16px;
	line-height:50px;
	margin-top:0;
}

.navi_head>div>span:hover{
	background:rgba(100,100,100,0.2);
}
</style>
</head>
<body>
<form>
<table>
	<div class="navi_body">
		<div class="navi_head">
			<div style="width:80%; margin-left:auto; margin-right:auto;">
				<span>
					<p class="navi_title"><a href="welcome.jsp">首页</a></p>
				</span>
				<span>
					<p class="navi_title">管理员</p>
					<p><a href="admin_listAdmin">管理员信息</a></p>
					<s:if test="#session.adminInfo != null">
						<p><s:a href="admin_viewAdd">添加管理员</s:a></p>
					</s:if>
				</span>
				<span>
					<p class="navi_title">部门</p>
					<p><a href="dept_listDept">部门信息</a></p>
					<s:if test="#session.adminInfo != null">
						<p><s:a href="dept_viewAdd">添加部门</s:a></p>
					</s:if>
				</span>
				<span>
					<p class="navi_title">员工</p>
					<p><a href="emp_list">员工信息</a></p>
					<s:if test="#session.adminInfo != null">
						<p><s:a href="emp_viewAdd">添加员工</s:a></p>
					</s:if>
				</span>
				<span>
					<p class="navi_title">用户管理</p>
					<s:if test="#session.adminInfo != null">
						<p>管理员：<s:property value="#session.adminInfo.adminName"/></p>
						<p><s:a href="admin_viewUpdatePwd">修改密码</s:a></p>
						<p><s:a href="admin_loginout">退出</s:a></p>
					</s:if>
					<s:else>
						<p><s:a href="login.jsp">登陆</s:a></p>
						<p><s:a href="register.jsp">注册</s:a></p>
					</s:else>
				</span>
			</div>
		</div>
	</div>
</table>
</form>
</body>

